<?php

// +----------------------------------------------------------------------
// | 转账业务设置
// +----------------------------------------------------------------------

// 转账业务类型
const TRANSFER_CASH = 'cash';
const TRANSFER_BALANCE_RECHARGE = 'balanceRecharge';
const TRANSFER_SHARE_SUBSIDY = 'shareSubsidy';
const TRANSFER_SHARE_LAWYER = 'shareLawyer';
const TRANSFER_SHARE_INVITER = 'shareInviter';
const TRANSFER_SHARE_LAW_CASE = 'shareLawCase';
const TRANSFER_CARD_RECHARGE = 'cardRecharge';
const TRANSFER_COIN_RECHARGE = 'coinRecharge';
const TRANSFER_COIN_GIFT = 'coinGift';
const TRANSFER_CARD_INVITE = 'cardInvite';
const TRANSFER_MARGIN_RECHARGE = 'marginRecharge';
const TRANSFER_MARGIN_PUNISH = 'marginPunish';

return [

    // 转账业务类型
    'transfers' => [
        // ****************** 三方账户 ****************** /
        TRANSFER_CASH => [
            'className' => \app\index\service\CashService::class,
            'name' => '提现',
        ],

        // ****************** 余额账户 ****************** /
        TRANSFER_BALANCE_RECHARGE => [
            'className' => \app\index\service\TradeBalanceRechargeService::class,
            'name' => '余额充值',
        ],

        TRANSFER_SHARE_SUBSIDY => [
            'name' => ' 订单分账-服务补贴'
        ],

        TRANSFER_SHARE_LAWYER => [
            'name' => ' 订单分账-律师佣金分成'
        ],

        TRANSFER_SHARE_INVITER => [
            'name' => ' 订单分账-邀请人分成'
        ],

        TRANSFER_SHARE_LAW_CASE => [
            'name' => '订单分账-案源分成'
        ],

        // ****************** 获客卡账户 ****************** /
        TRANSFER_CARD_RECHARGE => [
            'className' => \app\index\service\TradeTokenRechargeService::class,
            'name' => '获客卡充值',
        ],
        TRANSFER_CARD_INVITE => [
            'name' => '邀请新用户获客卡奖励',
        ],

        // ****************** 通信币账户 ****************** /
        TRANSFER_COIN_RECHARGE => [
            'className' => \app\index\service\TradeTokenRechargeService::class,
            'name' => '通信币充值',
        ],
        TRANSFER_COIN_GIFT => [
            'name' => '通信币新人福利',
        ],


        // ****************** 保证金账户 ****************** /
        TRANSFER_MARGIN_RECHARGE => [
            'name' => '保证金充值',
        ],
    ],
];
